<?php //ob_start() ;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--		<link rel="stylesheet" type="text/css" href="<?php echo RESDIR;?>scripts/easyui/themes/icon.css">-->
		<link rel="stylesheet" type="text/css" href="<?php echo RESDIR;?>scripts/SexyButtons/sexybuttons.css">
		<link rel="stylesheet" type="text/css" href="<?php echo RESDIR;?>style/backend/backend.css">
		<link rel="stylesheet" type="text/css" href="<?php echo RESDIR;?>style/form.css">
		
		<?php 
			  Yii::app()->clientScript->registerCoreScript('jquery');
//		 	  Yii::app()->clientScript->registerScriptFile(RESDIR.'scripts/easyui/jquery.easyui.min.js');
  			  Yii::app()->clientScript->registerScriptFile(RESDIR.'scripts/backend.js');
//		      Yii::app()->clientScript->registerScriptFile(RESDIR.'scripts/kindeditor/kindeditor-min.js');
		?>
		<title><?php echo CHtml::encode(Yii::app()->name);?></title>


	</head>
	<body>
	<?php echo $content?>
	</body>
</html>

<?php 
// $str = ob_get_contents ();
// ob_get_flush ();
// $path = dirname(dirname(__FILE__)) . "/static/layouts/main.html";
// $handle = fopen ( $path, "w" );
// fwrite ( $handle, $str );
// fclose ( $handle );
?>